function main(params) {
    debugger;
    const self = this;

    console.log("Params:", params);

    // 第一个列表组件
    var pageTableList1 = self.$$("page_widget_list_gyeix7");
    var pageTableList2 = self.$$("page_widget_list_9skdks");
    var pageTableList3 = self.$$("page_widget_list_a251k3");

    if (pageTableList1) {
        var queryElement1 = pageTableList1.dataEngine.state.getElement("query_field_wrapper_1tietm");
        var queryElement2 = pageTableList2.dataEngine.state.getElement("query_field_wrapper_1tietm");
        var queryElement3 = pageTableList3.dataEngine.state.getElement("query_field_wrapper_9qqwmm");

        api.EXEC_FORMULA("TREE_QUERY_CHILDRENS('fc3fa33e-3afe-4b4d-a150-81f4d6339951','" + params.id + "', ['unit_id'])")
            .then(function (res) {
                if (!res || !res.result) {
                    console.warn("API 返回无效:", res);
                    return;
                }

                var regionIdList = res.result;

                if (queryElement1 && queryElement1.data && queryElement1.data.members && queryElement1.data.members.length > 0) {
                    var queryModel1 = queryElement1.data.members[0];
                    if (queryModel1 && queryModel1.props && queryModel1.props.defaultValue) {
                        queryModel1.props.defaultValue.value = regionIdList;
                    }
                }

                if (queryElement2 && queryElement2.data && queryElement2.data.members && queryElement2.data.members.length > 0) {
                    var queryModel2 = queryElement2.data.members[0];
                    if (queryModel2 && queryModel2.props && queryModel2.props.defaultValue) {
                        queryModel2.props.defaultValue.value = regionIdList;
                    }
                }

                if (queryElement3 && queryElement3.data && queryElement3.data.members && queryElement3.data.members.length > 0) {
                    var queryModel3 = queryElement3.data.members[0];
                    if (queryModel3 && queryModel3.props && queryModel3.props.defaultValue) {
                        queryModel3.props.defaultValue.value = regionIdList;
                    }
                }


                var tableCondition1 = pageTableList1.dataEngine.state.getElement("condition_3e441u");
                var tableCondition2 = pageTableList2.dataEngine.state.getElement("condition_3e441u");
                var tableCondition3 = pageTableList3.dataEngine.state.getElement("condition_coyesi");

                tableCondition1.onQuery();
                tableCondition2.onQuery();
                tableCondition3.onQuery();

            })
            .catch(function (err) {
                console.error("列表1 API 调用失败:", err);
                self.$message.error(err.message);
            });
    }
}
